<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<html>
	<head>
		<title>Utilisateur | Mon profil</title>
	</head>
	<body>
		<a href="/forge/user/index.html">[accueil]</a>
		<h1>Profil ${firstname} ${lastname} au sein de CPC Forge</h1>
  		<div>
  			<span>Email courant: ${email}</span>
  		</div>
  		<form action="" method="post">
  			<div>
  				<label>Nom:</label>
  				<input type="text" name="surname" value="${lastname}"/>
  				<br/>
  				<label>Prenom:</label>
  				<input type="text" name="firstname" value="${firstname}"/>
  				<br/>
  				<label>Email:</label>
  				<input type="text" name="email" value="${email}"/>
  				<br/>
  				<label>Mot de passe:</label>
  				<input type="password" name="pwd"/>
  				<br/>
  				<label>Confirmation de mot de passe:</label>
  				<input type="password" name="pwd2"/>
  				<br/>
  				<input type="submit" value="Changer">
  			</div>
  		</form>
  		
  		<p class="error">${error}</p>
	</body>
</html>